﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace CrclzChat.Areas.Identity.Data
{
	public class Topic
	{
		[Key]
		[Required]
		[DatabaseGenerated(DatabaseGeneratedOption.None)]
		public Guid TopicId { get; set; }

		[Required]
		[MaxLength(16)]
		public string Name { get; set; }

		// Navigation Properties
		public IEnumerable<APost> Posts { get; set; }
	}
}
